﻿using System;


namespace FlurentFiltration
{
    public class FilterBinding : IFilterBinding
    {
        private readonly FilterBindingContainer _container;
        
        public FilterBinding()
        {
            _container  = new FilterBindingContainer();
        }
        
        public void Bind(Type tCollection, Type tFilter)
        {
            _container.Add(tCollection, tFilter);
        }

        public void Remove(Type tCollection)
        {
            _container.Remove(tCollection);
        }

        public Type GetValue(Type tCollection)
        {
            return _container.GetFilterType(tCollection);
        }

        public bool Contains(Type tCollection)
        {
            return _container.Contains(tCollection);
        }
    }
}
